import axios, { Axios } from "axios";
const context = "/deviceservice";

/**
 * 获取 DeviceInfo 分页列表
 */
export function getDeviceInfoPagination(data: any) {
  return axios.get(`${context}/deviceInfo/pagination`, { params: data });
}

/**
 * 获取 DeviceInfo 所有数据
 */
export function getDeviceInfoAllList(data: any) {
  return axios.get(`${context}/deviceInfo/allList`, { params: data });
}

/**
 * 获取 DeviceInfo 详情
 */
export function getDeviceInfoDetailById(id: any) {
  return axios.get(`${context}/deviceInfo/${id}`, { params: { id } });
}

/**
 * 新增 DeviceInfo
 */
export function addDeviceInfo(data: any) {
  return axios.post(`${context}/deviceInfo`, data);
}

/**
 * 修改 DeviceInfo
 */
export function updateDeviceInfo(data: any) {
  return axios.put(`${context}/deviceInfo`, data);
}

/**
 * 删除 DeviceInfo
 */
export function batchRemoveDeviceInfo(data: any) {
  return axios.post(`${context}/deviceInfo/batchRemove`, data);
}
